package com.example.mybatisdemo.mapper;

import com.example.mybatisdemo.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserInfoXmlMapper {
    Integer insert(UserInfo userInfo);

    Integer delete(Integer id);

    Integer update(UserInfo userInfo);

    /**
     * 查询
     * @return
     */
    List<UserInfo> selectAllUser();

    Integer selectCount();

    List<UserInfo> selectAllUser2();

    //动态sql
    Integer insertByCondition(UserInfo userInfo);

    List<UserInfo> queryUserByCondition(UserInfo userInfo);

    Integer update1(UserInfo userInfo);

    Integer deleteBatch(List<Integer> ids);
}
